package com.netease.pris.activity;

import android.text.TextUtils;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.Toast;
import com.netease.pris.atom.aa;
import com.netease.pris.atom.ad;
import com.netease.pris.atom.g;
import com.netease.pris.atom.r;
import com.netease.pris.atom.u;
import com.netease.pris.b;
import com.netease.pris.protocol.d;
import java.util.LinkedList;

class dt extends b
{
  dt(SubsInfoActivity paramSubsInfoActivity)
  {
  }

  public void a()
  {
    this.a.b();
  }

  // ERROR //
  public void b(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   4: invokestatic 25	com/netease/pris/activity/SubsInfoActivity:l	(Lcom/netease/pris/activity/SubsInfoActivity;)Ljava/util/LinkedList;
    //   7: new 27	java/lang/Integer
    //   10: dup
    //   11: iload_1
    //   12: invokespecial 30	java/lang/Integer:<init>	(I)V
    //   15: invokevirtual 36	java/util/LinkedList:contains	(Ljava/lang/Object;)Z
    //   18: ifeq +65 -> 83
    //   21: aload_0
    //   22: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   25: invokestatic 25	com/netease/pris/activity/SubsInfoActivity:l	(Lcom/netease/pris/activity/SubsInfoActivity;)Ljava/util/LinkedList;
    //   28: new 27	java/lang/Integer
    //   31: dup
    //   32: iload_1
    //   33: invokespecial 30	java/lang/Integer:<init>	(I)V
    //   36: invokevirtual 39	java/util/LinkedList:remove	(Ljava/lang/Object;)Z
    //   39: pop
    //   40: aload_0
    //   41: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   44: invokestatic 43	com/netease/pris/activity/SubsInfoActivity:r	(Lcom/netease/pris/activity/SubsInfoActivity;)I
    //   47: pop
    //   48: aload_0
    //   49: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   52: invokestatic 46	com/netease/pris/activity/SubsInfoActivity:s	(Lcom/netease/pris/activity/SubsInfoActivity;)I
    //   55: ifgt +10 -> 65
    //   58: aload_0
    //   59: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   62: invokevirtual 18	com/netease/pris/activity/SubsInfoActivity:b	()V
    //   65: aload_0
    //   66: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   69: invokevirtual 18	com/netease/pris/activity/SubsInfoActivity:b	()V
    //   72: aload_0
    //   73: getfield 10	com/netease/pris/activity/dt:a	Lcom/netease/pris/activity/SubsInfoActivity;
    //   76: invokestatic 50	com/netease/pris/activity/SubsInfoActivity:m	(Lcom/netease/pris/activity/SubsInfoActivity;)Landroid/content/Context;
    //   79: iload_2
    //   80: invokestatic 55	com/netease/pris/activity/dc:a	(Landroid/content/Context;I)V
    //   83: return
    //   84: astore 6
    //   86: aload 6
    //   88: athrow
    //   89: astore 5
    //   91: goto -8 -> 83
    //
    // Exception table:
    //   from	to	target	type
    //   0	83	84	finally
    //   0	83	89	java/lang/NullPointerException
  }

  public void b(int paramInt, d paramd)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
      if (paramd != null);
    }
    else
    {
      return;
    }
    if ((paramd.j.size() > 0) && (SubsInfoActivity.q(this.a) == paramInt))
    {
      if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
      {
        SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
        Toast.makeText(SubsInfoActivity.m(this.a), 2131361911, 0).show();
      }
      SubsInfoActivity.o(this.a).setVisibility(8);
      SubsInfoActivity.n(this.a).setVisibility(8);
    }
    while (true)
    {
      this.a.finish();
      break;
      if ((paramd.i.size() <= 0) || (SubsInfoActivity.q(this.a) != paramInt) || (paramd.i.getFirst() == null) || (!SubsInfoActivity.l(this.a).contains(new Integer(paramInt))))
        continue;
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
      Toast.makeText(SubsInfoActivity.m(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void b(int paramInt, d paramd, boolean paramBoolean)
  {
    try
    {
      if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
      {
        SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
        SubsInfoActivity.r(this.a);
        if (SubsInfoActivity.s(this.a) <= 0)
          this.a.b();
        this.a.b();
        if ((paramd != null) && (paramd.h != null))
          SubsInfoActivity.a(this.a, paramd);
      }
    }
    catch (NullPointerException localNullPointerException)
    {
    }
    finally
    {
    }
  }

  public void d(int paramInt1, int paramInt2, String paramString)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt1)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt1));
      dc.a(SubsInfoActivity.m(this.a), paramInt2);
    }
  }

  public void d(int paramInt1, int paramInt2, String paramString, boolean paramBoolean)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt1)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt1));
      SubsInfoActivity.r(this.a);
      if (SubsInfoActivity.s(this.a) <= 0)
        this.a.b();
      SubsInfoActivity.b(this.a, false);
      dc.a(SubsInfoActivity.m(this.a), paramInt2);
    }
  }

  public void d(int paramInt, d paramd, boolean paramBoolean)
  {
    int i = 0;
    try
    {
      if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
      {
        SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
        SubsInfoActivity.r(this.a);
        if (SubsInfoActivity.s(this.a) <= 0)
          this.a.b();
        SubsInfoActivity.b(this.a, false);
        if (paramd != null)
        {
          LinkedList localLinkedList = paramd.h;
          if (localLinkedList != null)
            break label142;
        }
      }
      label142: String str1;
      String str2;
      while (true)
      {
        return;
        SubsInfoActivity.u(this.a).setVisibility(8);
        SubsInfoActivity.u(this.a).setEnabled(false);
        continue;
        SubsInfoActivity.a(this.a, paramd, paramBoolean);
        str1 = SubsInfoActivity.t(this.a);
        SubsInfoActivity.a(this.a, null);
        ad localad = paramd.g;
        if (localad == null)
        {
          SubsInfoActivity.u(this.a).setVisibility(8);
          SubsInfoActivity.u(this.a).setEnabled(false);
          continue;
        }
        str2 = paramd.g.b(g.i);
        boolean bool1 = TextUtils.isEmpty(str2);
        if (!bool1)
          break;
        SubsInfoActivity.u(this.a).setVisibility(8);
        SubsInfoActivity.u(this.a).setEnabled(false);
      }
      boolean bool2;
      label278: Button localButton;
      if (str2.equals(str1))
      {
        SubsInfoActivity.a(this.a, null);
        bool2 = false;
        localButton = SubsInfoActivity.u(this.a);
        if (!bool2)
          break label330;
      }
      while (true)
      {
        localButton.setVisibility(i);
        SubsInfoActivity.u(this.a).setEnabled(bool2);
        break;
        SubsInfoActivity.a(this.a, str2);
        bool2 = true;
        break label278;
        label330: i = 8;
      }
    }
    catch (Exception localException)
    {
      while (true)
      {
        localException.printStackTrace();
        SubsInfoActivity.u(this.a).setVisibility(8);
        SubsInfoActivity.u(this.a).setEnabled(false);
      }
    }
    finally
    {
      SubsInfoActivity.u(this.a).setVisibility(8);
      SubsInfoActivity.u(this.a).setEnabled(false);
    }
    throw localObject;
  }

  public void e(int paramInt1, int paramInt2, String paramString)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt1)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt1));
      dc.a(SubsInfoActivity.m(this.a), paramInt2);
    }
  }

  public void f(int paramInt, d paramd)
  {
    if (paramd == null)
      if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
        SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
    while (true)
    {
      return;
      if (paramd.h.size() > 0)
      {
        if (!SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
          continue;
        SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
        Toast.makeText(SubsInfoActivity.m(this.a), 2131361910, 0).show();
        if ((SubsInfoActivity.d(this.a) != null) && (paramd.h.getFirst() != null))
        {
          SubsInfoActivity.d(this.a).a(aa.a);
          if (SubsInfoActivity.d(this.a).L())
          {
            SubsInfoActivity.n(this.a).setVisibility(0);
            SubsInfoActivity.n(this.a).setText(2131361959);
            SubsInfoActivity.n(this.a).setCompoundDrawablesWithIntrinsicBounds(2130837549, 0, 0, 0);
          }
        }
        SubsInfoActivity.o(this.a).setVisibility(8);
        SubsInfoActivity.p(this.a).setText(2131361879);
        SubsInfoActivity.p(this.a).setCompoundDrawablesWithIntrinsicBounds(2130837548, 0, 0, 0);
        continue;
      }
      if ((paramd.i.size() <= 0) || (paramd.i.getFirst() == null) || (!SubsInfoActivity.l(this.a).contains(new Integer(paramInt))))
        continue;
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
      Toast.makeText(SubsInfoActivity.m(this.a), ((r)paramd.i.getFirst()).e(), 0).show();
    }
  }

  public void n(int paramInt, d paramd)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
      Toast.makeText(SubsInfoActivity.m(this.a), 2131361945, 0).show();
      SubsInfoActivity.c(this.a, true);
      if ((!SubsInfoActivity.c(this.a)) || (!SubsInfoActivity.v(this.a)) || (!SubsInfoActivity.w(this.a)))
        break label103;
      this.a.finish();
    }
    while (true)
    {
      return;
      label103: SubsInfoActivity.x(this.a);
    }
  }

  public void p(int paramInt1, int paramInt2, String paramString)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt1)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt1));
      dc.a(SubsInfoActivity.m(this.a), paramInt2);
      SubsInfoActivity.c(this.a, true);
      if ((SubsInfoActivity.c(this.a)) && (SubsInfoActivity.v(this.a)) && (SubsInfoActivity.w(this.a)))
        this.a.finish();
    }
  }

  public void r(int paramInt, d paramd)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt));
      Toast.makeText(SubsInfoActivity.m(this.a), 2131361965, 0).show();
      SubsInfoActivity.d(this.a, true);
      if ((SubsInfoActivity.c(this.a)) && (SubsInfoActivity.v(this.a)) && (SubsInfoActivity.w(this.a)))
        this.a.finish();
    }
  }

  public void u(int paramInt1, int paramInt2, String paramString)
  {
    if (SubsInfoActivity.l(this.a).contains(new Integer(paramInt1)))
    {
      SubsInfoActivity.l(this.a).remove(new Integer(paramInt1));
      dc.a(SubsInfoActivity.m(this.a), paramInt2);
      SubsInfoActivity.d(this.a, true);
      if ((SubsInfoActivity.c(this.a)) && (SubsInfoActivity.v(this.a)) && (SubsInfoActivity.w(this.a)))
        this.a.finish();
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.dt
 * JD-Core Version:    0.6.0
 */